package org.csmz.xg2333;


public class Person {
    public String name; //名字
    public String role; //身份
    public String subject; //教学科目

    public Person(String name,String role){
        this.name = name;
        this.role = role;
        this.subject = "无";
    }

    public Person(String name,String role,String subject){
        this.name = name;
        this.role = role;
        this.subject = subject;
    }

    public void print(){
        System.out.println("你的名字是："+name +"\n你的身份是："+role+"\n你的教学科目是："+subject);
    }

}
